#!/bin/bash
#
git tag
read -p "version: " version
read -p "new version $version [y/n]: " stat
if [ "$stat" == "y" ] ; then 
  echo $version >version
  git add . && git commit -m "$version" && git push 
  git tag $version
  git push --tags
else
  echo 'User Cancel!'
fi

